<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/el/course.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
		}
	});
	$('#editForm').find("input:checkbox, input:radio").not('input.ibtn').uniform();
});
</script>
<style>
.my-filter-table {
	background: linear-gradient(to bottom, #F1FAFE 0%, #D9EDF7 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
	border: 1px solid #9BE2F0;
	display: inline-block;
	margin-bottom: 5px;
	margin-left: 5px;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.my-filter-table a {
	color: #3A87AD;
    display: inline-block;
    margin: 0 4px;
}
.my-filter-table button {
	background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
    border: 0 none;
    cursor: pointer;
    padding: 0;
    color: #000000;
    float: right;
    font-size: 20px;
    font-weight: bold;
    line-height: 20px;
    opacity: 0.4;
    text-shadow: 0 1px 0 #FFFFFF;
}
.add-tag-input {
	width:80px;
}
</style>
<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>
<div>
	<h5 class="title"> 编辑课程信息</h5>
</div>
<div class="widget" >
	<div class="widget-content">
		<form id="editForm">
			<table style="width:400px;"  class="table table-bordered">
				<tr>
					<td style="width: 100px;">课程名称</td>
					<td>
						<input type="text" id="name" name="name" value="${(course.name)!''}" />
						<input type="hidden" id="code" name="code" value="${(course.code)!''}" />
					</td>
				</tr>
				<tr>
					<#assign i = 0 />
					<td style="width: 100px;"><a href="javascript:;" style="color: blue;" onclick="javascript: selectLc_course(${i});">【添加讲师】</a></td>
					<td class="td-rep">
						<div id="ptypeObjList">
						<#if course?? && course.lcList??>
							<#list course.lcList as list>
								<div class="my-filter-table rep">
									<a class="title" href="#">${(list.ln)!''}</a>
									<input class="pc" type="hidden" name="lcList[${i}].lc" value="${(list.lc)!''}"/>
									<a href="javascript:;" onclick="javascrit: deleteChoiseClass_est($(this));return false;"></a>
									<button type="button" class="del-tag" data-dismiss="alert">&times;</button>
								</div>
							<#assign i = i+ 1 />
						</#list>
						</#if>
						</div>
					</td>
				</tr>
				<tr>
					<td><a href="javascript:;" style="color: blue;" onclick="javascript: selectCourse_course();">【添加前置课程】</a></td>
					<td class="yy" id="sskc">
						<div id="itemList">
						<#if course?? && course.itemList??>
							<#assign j = 0 />
							<#list course.itemList as item>
								<div class="my-filter-table rep">
									<a class="title1" href="#">${(item.fn)!''}</a>
									<input class="cc" type="hidden" name="itemList[${j}].fc" value="${(item.fc)!''}"/>
									<a href="javascript:;" onclick="javascrit: deletedCourses_course($(this));return false;"></a>
									<button type="button" class="del-tag" data-dismiss="alert">&times;</button>
								</div>
							<#assign j = j + 1 />
							</#list>
						</#if>
						</div>
					</td>
				</tr>
				<tr>
					<td colspan="2" style="text-align: center;">
						<a href="javascript:;" class="btn btn-info" onclick="javascript: save_course(); return false;"><i class="icon-save"></i>&nbsp;保&nbsp;&nbsp;存</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="javascript:;" class="btn btn-primary" onclick="javascript: sys_load_handle('course');return false;"><i class="fontello-icon-block"></i>&nbsp;取&nbsp;&nbsp;消</a>
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>

<div id="tempListDiv" style="display:none;">
	<div class="my-filter-table rep" style="margin-left:5px; margin-bottom:0px;">
		<input class="pc" type="hidden" />
		<button type="button" class="del-tag" data-dismiss="alert" onclick="javascript: deleteChoiseClass_est($(this));">&times;</button>
		<a class="title" href="#"></a>
	</div>
</div>
<div id="sskcTable" style="display:none;">
	<div class="filter-table rep" style="margin-left:5px; margin-bottom:0px;">
		<input class="cc" type="hidden" />
		<button type="button" class="close" data-dismiss="alert" onclick="javascript: deletedCourses_course($(this));">&times;</button>
		<a class="title1" href="#"></a>
	</div>
</div>